/*
 * Copyright (c) 2020-2022 Jinsp-tech. All rights reserved.
 */

package com.jinsp.networklibrary.command;

/**
 * Created by luoshuai on 1/15/22
 * <p>
 * TCP发送-接收数据命令
 */
public interface ITCPCommand<C, S> {

    int getCommandNumber();     //获取当前命令号

    void handleCommand(int state, Object data);       //处理服务端返回命令

    C getCommandData();         //获取命令具体数据

    void setCommandData(C t);   //设置命令具体数据

    boolean isMainThread();     //是否切换主线程
}
